<?php include 'inc/teacher_head.php';?>



<div class="layui-container">




<div class="layui-row" style="width:80%;text-align:center;margin:0 auto;">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 100px;">
            <legend>
                <div style="font-size:16pt;">输入加分信息</div>
            </legend>
        </fieldset>
    <div class="">
      <textarea id='data' class='layui-textarea' style="background-color: #eee;height: 200px;" placeholder="格式是: 加分值1,班级ID1,座位号1;加分值2,班级ID2,座位号2"></textarea>
      <button id='b' class='layui-btn layui-btn-lg' style='width:120px;margin-top:10px;'>确 定</button>
    </div>

</div>




</div><!--container end-->


<?php include 'inc/teacher_foot.php';?>


<!-- JS脚本开始 -->
<script type="text/javascript">
layui.use(function () {
    var table       = layui.table
        , element   = layui.element
        , form      = layui.form
        , $         = layui.$;
$("#nav_master").addClass('layui-this'); //设置导航当前选中项的样式

 //高手加分
$("#b").click(function(){
    let text=$("#data").val();

    $.post('/teacher/master', {data:text}, function (r) {
        console.log(r);  //ok
        layer.msg("操作成功");
    });
});
});

</script>



<?php include 'inc/teacher_foot.php';?>

